﻿using XLua;

namespace Yoozoo.Gameplay.RTS.Proto
{
    [GCOptimize]
    [LuaCallCSharp]
    public struct Coordinate
    {
        public float xAxis;
        public float zAxis;
        
        public static  Coordinate operator+(Coordinate a, Coordinate b)
        {
            Coordinate res = new Coordinate();
            res.xAxis = a.xAxis + b.xAxis;
            res.zAxis = a.zAxis + b.zAxis;
            return res;
        }
    }
}
